-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bugfix/lm multi qubit op #511
Conversation
Codecov ReportAll modified lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #511 +/- ##
==========================================
+ Coverage 98.98% 99.13% +0.14%
==========================================
Files 142 143 +1
Lines 17124 16850 -274
==========================================
- Hits 16950 16704 -246
+ Misses 174 146 -28
☔ View full report in Codecov by Sentry. |
[SC-47085] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a few suggestions.
pennylane_lightning/core/src/simulators/lightning_kokkos/gates/GateFunctorsParam.hpp
Outdated
Show resolved
Hide resolved
pennylane_lightning/core/src/simulators/lightning_kokkos/gates/GateFunctorsParam.hpp
Outdated
Show resolved
Hide resolved
pennylane_lightning/core/src/simulators/lightning_kokkos/gates/GateFunctorsParam.hpp
Outdated
Show resolved
Hide resolved
pennylane_lightning/core/src/simulators/lightning_kokkos/measurements/ExpValFunctors.hpp
Outdated
Show resolved
Hide resolved
pennylane_lightning/core/src/simulators/lightning_kokkos/measurements/ExpValFunctors.hpp
Outdated
Show resolved
Hide resolved
pennylane_lightning/core/src/simulators/lightning_kokkos/measurements/ExpValFunctors.hpp
Outdated
Show resolved
Hide resolved
pennylane_lightning/core/src/simulators/lightning_kokkos/measurements/ExpValFunctors.hpp
Outdated
Show resolved
Hide resolved
Co-authored-by: Amintor Dusko <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @vincentmr
No major concerns from me. Feel free to ignore comments if they are irrelevant.
pennylane_lightning/core/src/simulators/lightning_kokkos/gates/GateFunctorsParam.hpp
Show resolved
Hide resolved
pennylane_lightning/core/src/simulators/lightning_kokkos/measurements/ExpValFunctors.hpp
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me! Let me know if there is any change here.
Before submitting
Please complete the following checklist when submitting a PR:
All new features must include a unit test.
If you've fixed a bug or added code that should be tested, add a test to the
tests
directory!All new functions and code must be clearly commented and documented.
If you do make documentation changes, make sure that the docs build and
render correctly by running
make docs
.Ensure that the test suite passes, by running
make test
.Add a new entry to the
.github/CHANGELOG.md
file, summarizing thechange, and including a link back to the PR.
Ensure that code is properly formatted by running
make format
.When all the above are checked, delete everything above the dashed
line and fill in the pull request template.
Context:
The
LM::multiQubitOp
kernel usesbitswap
to generate the SV indices on the fly. This does not work when the target wires are such that the corresponding bit positions overlap after swap (i.e. when there are a bunch of them with high target indices).Description of the Change:
Add failing multi-qubit gate tests. Introduce a generic
revWireParity
function and fixLM::multiQubitOp
.The corresponding L-Kokkos functors are also broken (gates and expvals). Add failing multi-qubit expval tests and fix gate and expval functors.
Benefits:
Possible Drawbacks:
Related GitHub Issues: